<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>聊天室-历史记录</title>
  <link rel="stylesheet" href="/jquery-emoji/lib/css/jquery.mCustomScrollbar.min.css">
  <link rel="stylesheet" href="/jquery-emoji/src/css/jquery.emoji.css">
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .box {
      width: 700px;
      height: 750px;
      background-color: rgb(245, 245, 245);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border-radius: 20px;
      box-shadow: 0 0 20px gray;
      overflow: hidden;
    }

    h1 {
      width: 100%;
      height: 50px;
      line-height: 50px;
      text-align: center;
      color: #f2f2f2f2;
      background-color: rgb(46, 46, 46);
      margin-bottom: 5px;
    }

    .nr {
      width: 720px;
      height: 715px;
      overflow: scroll;

    }

    .nr p span {
      display: block;
      height: auto;
      background-color: #c6c5c5;
      width: 98%;
      margin: 0 auto;
      padding: 5px;
      margin-bottom: 8px;
      box-sizing: border-box;
      border-radius: 10px;
      word-wrap: break-word;
      word-break: break-all;
      overflow: hidden;
    }

    .sy {
      position: absolute;
      bottom: 20px;
      right: 20px;
      text-decoration: none;
      width: 50px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      font-size: 14px;
      background-color: #c6c5c5;
      border-radius: 10px;
      cursor: pointer;
    }
  </style>
</head>

<body>
  <div class="box">
    <h1>历史记录</h1>
    <div class="nr">
      <p>
        <% for(let i=0;i<data.length;i++){ %>
          <span class="nrrr">
            <%=data[i]%>
          </span>
          <% } %>
      </p>
    </div>
    <p class="sy">关闭</p>
  </div>

  <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
  <script src="/jquery-emoji/lib/script/jquery.mousewheel-3.0.6.min.js"></script>
  <script src="/jquery-emoji/lib/script/jquery.mCustomScrollbar.min.js"></script>
  <script src="/jquery-emoji/src/js/jquery.emoji.js"></script>
  <script>
    $(".nrrr").emojiParse({
      icons: [{
        path: "/jquery-emoji/src/img/qq/",
        file: ".gif",
        placeholder: "#qq_{alias}#"
      }]
    });
    $('.sy').on('click', function () {
      window.close();
    })
  </script>
</body>

</html>